﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Create.aspx.cs" Inherits="TraceThisItem.WebUI.ItemTypes.Create" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Agregar nuevo tipo de Item
    </h2>
    <p>
        &nbsp;<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
   
     </p>
    <p>

        <asp:Label ID="lblNombretipoDeItem" Text="Nombre del Tipo de Item" runat="server" AssociatedControlID="txtNombreTipoDeItem" /><asp:TextBox
            ID="txtNombreTipoDeItem" runat="server" />
              <asp:RequiredFieldValidator ID="RequiredFieldValidatorNombreTipoItem" runat="server" CssClass="ErrorText" 
            ErrorMessage="El nombre del item es requerido" ControlToValidate="txtNombreTipoDeItem"></asp:RequiredFieldValidator>
            <br />
        <asp:Label ID="lblProyectoAsociado" Text="Proyecto"
                runat="server" /><br />
        <asp:Label ID="lblWorkFlow" Text="Workflow Asociado" runat="server" AssociatedControlID="ddlWorkFlows" />
          <asp:DropDownList ID="ddlWorkFlows" runat="server" Width="275px" 
            DataSourceID="WorkFlowsDataSource" DataTextField="Name" 
            DataValueField="Id"  />
               <asp:RequiredFieldValidator ID="RequiredFieldValidatorWorkFlow" runat="server" ErrorMessage="Debe elegir un workflow" ControlToValidate="ddlWorkFlows"></asp:RequiredFieldValidator>
               </br>
        
        
        <asp:Button ID="btnAgregarTipoDeItem" Text="Agregar Tipo de Item" runat="server"
            Width="224px" OnClick="btnAgregarTipoDeItem_Click" />
   
   
        <asp:ObjectDataSource ID="WorkFlowsDataSource" runat="server" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="GetWorkFlows" 
        TypeName="TraceThisItem.Domain.Facade" onobjectcreating="WorkFlowsDataSource_ObjectCreating" 
        ></asp:ObjectDataSource>
       
    </p>
</asp:Content>
